<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${wechatMenu.id}"  type="hidden">
							<div class="form-group" style="display: none;">	
								<label class="col-sm-3 control-label"  >所属用户：</label>
								<div class="col-sm-8">
									<input id="userId" name="userId" th:value="${wechatMenu.userId}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group" style="display: none; ">	
								<label class="col-sm-3 control-label" >父ID：</label>
								<div class="col-sm-8">
									<input id="parentId" name="parentId" th:value="${wechatMenu.parentId}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">父类名称：</label>
								<div class="col-sm-8">
									<input id="parentName" name="parentName" th:value="${wechatMenu.parentName}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">菜单名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${wechatMenu.name == null ? '无' : wechatMenu.name}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">菜单类型：</label>
								<div class="col-sm-8">
									<!-- <input id="type" name="type" th:value="${wechatMenu.type}" class="form-control" type="text"> -->
									<select id="type" name="type" class="form-control">
										<option value="view" >外链</option>
										<option value="scancode_push" >二维码扫描</option>
									</select>
								</div>	
								
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">事件 Key：</label>
								<div class="col-sm-8">
									<input id="eventKey" name="eventKey" th:value="${wechatMenu.eventKey}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">url：</label>
								<div class="col-sm-8">
									<input id="url" name="url" th:value="${wechatMenu.url}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group" style="display: none;" >	
								<label class="col-sm-3 control-label">创建时间：</label>
								<div class="col-sm-8">
									<input id="createTime" name="createTime" th:value="${wechatMenu.createTime}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">小程序跳转路径：</label>
								<div class="col-sm-8">
									<input id="pagepath" name="pagepath" th:value="${wechatMenu.pagepath}" class="form-control" type="text">
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/wx/wechatMenu/edit.js">
	</script>
	<script type="text/javascript" th:inline="javascript">
		$("#type").val([[${wechatMenu.type}]]);
	</script>
</body>
</html>
